package barige;

import barige.road.CityWay;
import barige.road.HeightWay;
import barige.vehicle.Bus;
import barige.vehicle.Car;
import barige.vehicle.Driveable;

public class MainTest {
    public static void main(String[] args) {
        HeightWay heightWay = new HeightWay();
        CityWay cityWay = new CityWay();
        Driveable car = new Car(heightWay);
        Driveable car1 = new Car(cityWay);
        Driveable bus = new Bus(cityWay);

        car.drive();
        car1.drive();
        bus.drive();
    }

}
